<div class="row-fluid">
<div class="span3 offset4">
<h4 align="center">Add Hobbies</h4>
<table>
<?php echo form_open_multipart(current_url()) ?>
<?php echo validation_errors(); ?>

<tr></tr>
	<tr><td>Name: </td>
	<td>	
	<input type="text" name="hobbyname" placeholder="Hobby name..." />
	</td></tr>
	<tr><td>Image: </td>
	<td><input type="file" name="userfile" /></td>
	<td></td>
	<td></td>
	</tr>
	<tr><td><br /></td></tr>
	<tr><td></td><td><input type="submit" value="Add Hobbies" class="btn btn-info"/></td></tr>

</form>
</table>

</div>

<div class="span11" style="margin-top: 60px;">
<header><i class="icon-music"></i> Predefined hobbies</header>
<table class="table table-striped table-bordered" width="100%" id="example">
<thead>
	  <tr>
		<th>Hobby Pic</th>
	    <th>Name of the hobby</th>      
		 <th>Action</th>      
	  </tr>
</thead>
<?php
	foreach(@$query2 as $row){
	$pID=$row->id;
	  echo "<tr>";
		echo "<td>". '<img src="'.base_url().'assets/images/hobbies/'.$row->location.'" style="width:20px" >' ."</td>";
	    echo "<td>". $row->name ."</td>";
		 echo "<td>" .'<a href="'.site_url("founder/jobprofile/delete_hobbies/".$pID).'">'.'<i class="icon-trash icon-white"></i>'.'</a>'."</td>";
	  echo "</tr>";  
	}
?>
</table>
</div>
</div>
